// vim: set tabstop=8 shiftwidth=8:
/*****************************************************************************
 * typehead.c
 * direct output binary data to get typehead
 * 2011-02-10, ZHOU Cheng, init
 ****************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <stdint.h>

int main(int argc, char *argv[])
{
        uint8_t i;
        uint8_t j;
        uint8_t r;
        uint8_t n;

        r = 0x0A;
        n = 0x0D;

        for(i = 0xA1; i <= 0xA9; i++)
        {
                for(j = 0xA1; j <= 0xFE; j++)
                {
                        if(j == 0x7F)
                        {
                                continue;
                        }
                        if(0xAA <= i && i <= 0xAF && 0xA1 <= j && j <= 0xFE)
                        {
                                continue;
                        }
                        if(0xF8 <= i && i <= 0xFE && 0xA1 <= j && j <= 0xFE)
                        {
                                continue;
                        }
                        if(0xA1 <= i && i <= 0xA7 && 0x40 <= j && j <= 0xA0)
                        {
                                continue;
                        }
                        fwrite(&i, 1, 1, stdout);
                        fwrite(&j, 1, 1, stdout);

                        if(0)
                        {
                                fwrite(&n, 1, 1, stdout);
                                fwrite(&r, 1, 1, stdout);
                        }
                }
        }

        exit(0);
}

